import Mock from "mockjs";

interface commodityItem {
  name: string;
  item_id: number;
  shop: string;
  weight: number;
  origin: string;
  item_number: string;
  material: string;
  collar: string;
  pattern: string;
  season: string;
  closure: string;
  marketTime: string;
  price: number;
  description: string;
  baseInfo: string;
  introduction: string;
}

let {data} = Mock.mock({
  "data|120": [
    {
      name: "太平鸟男装",
      "item_id|+1": 10033846953329,
      shop: "太平鸟男装舰店",
      "weight|50-150": 100,
      "origin": "@city(true)",
      item_number: "B2BCB1205",
      material: "棉",
      colloar: "翻领",
      pattern: "宽松型",
      season: "春季",
      closure: "单排扣",
      marketTime: "2022夏季",
      "price|100-1000": 500,
      description: "秋季长款风衣针织，时尚日韩日韩风线衫，旅游款休闲裤...",
      baseInfo: "太平鸟风尚男装是以服饰品牌的创意、设计和营销为产业核心，同时发展家品文化、汽车贸易、商业投资为一体的多元化企业集团。品牌阐述 产品系列分：斯文「COLLECTION」.生活「CASUAL」COLLECTION系列：以高级剪裁为代表，倾力打造「自信」的都市...",
      introduction: "““太平鸟”以“时尚、活力、亚洲”为风格。拥有优良的设计理念、时尚的设计风格、敏锐的时尚捕捉力及国际超模的倾情代言,使品牌的独特魅力在一次次演绎中呈现。产品以时尚、活力及充满亚洲的风格,受不断寻找新形象的都市群体所喜爱。 “活出我的闪耀”是“太平鸟”的品牌精髓。品牌专注于提供优质平价、丰富多样化的时尚产品,提高了消费者的时尚选择性,让每一位顾客都能尽享时尚的乐趣! ",
    }
  ]
})

Mock.mock("/api/commodities/list", "post", (options: {body: string}) => {
  return data;
})

export type {commodityItem} 